import os
import csv

path =os.path.abspath(os.path.dirname(__file__))
path =path +'/../config/data.csv'
pathfile ='E:\dena ste\denaLcm\config\data.csv'
with open(pathfile,'r') as csvf:
    reader =csv.DictReader(csvf)
    rows =[row for row in reader]
    print(rows)
#UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 9: